const express = require('express')
const app = express()
// 使用后可以获取body中的json数据，否则body为空
app.use(express.json())
const registerRouter = require('./route')
registerRouter(app)


// res.send('hello world'))
app.listen(3000, () => {
  console.log('server is listen on 3000')
})
